package com.yimils.core.sys.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * 角色资源（权限）树
 */
@Data
public class ResourceTreeVo {
    private List<ResourceNode> resources;

    @Data
    public static class ResourceNode {
        private Long id;
        private Long parentId;
        private String name;
        private String label;
        private String icon;
        private String opt;
        private String url;
        private Integer sort;
        private Integer sys;
        @JsonInclude(JsonInclude.Include.NON_NULL)
        private List<ResourceNode> children;
    }
}
